<?php Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/profile_style_fileds.css', 'all'); ?>

<section id="profile_cover" class="cover center-child">
    <div class="home_article">
        <div id="profile_image" class="center-child">
            <img src="<?php echo Yii::app()->baseUrl; ?>/images/People_demo.jpg" alt="Ideawebsite.com">
        </div>
        <table id="profile_info">
            <tr>
                <td colspan="2">
                    <h1 id="profile_info_name"><?php echo $NguoiDung->BiDanh != null ? mb_strtoupper($NguoiDung->BiDanh, 'UTF-8') : mb_strtoupper($NguoiDung->Ten, 'UTF-8'); ?></h1>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <h2 id="profile_info_slogan">"<?php echo $NguoiDung->Slogan; ?>"</h2>
                </td>
            </tr>
            <tr>
                <td id="age_info" class="label_base">Năm sinh: </td>
                <td class="label_base"><?php echo date('Y', strtotime($NguoiDung->NgaySinh)); ?> </td>
            </tr>
            <tr>
                <td id="location_info" class="label_base">Địa điểm: </td>
                <td class="label_base"><?php echo $NguoiDung->DiaChi; ?> </td>
            </tr>
            <tr>
                <td id="begin_info" class="label_base">Ngày tham gia: </td>
                <td class="label_base"><?php echo date('d-M-Y', strtotime($NguoiDung->NgayDangKy)); ?> </td>
            </tr>
            <tr>
                <td id="reputation_info" class="label_base">Uy tín: </td>
                <td>
                    <div id="reputation_bar">
                        <div class="reputation_value">
                            <div id="avalible_value" style="flex:<?php echo $NguoiDung->UyTin; ?>">
                                <span><?php echo $NguoiDung->UyTin; ?></span>
                            </div>
                            <div id="another_value" style="flex:<?php echo (100 - $NguoiDung->UyTin); ?>"><span><?php echo (100 - $NguoiDung->UyTin); ?></span></div>
                        </div>
                    </div>
                </td>
            </tr>

        </table>

    </div>
</section>

<section class="home_wrapper">

    <nav id="profile_option" class=" center-child">
        <?php 
        echo CHtml::ajaxLink("<span>Lịch sử <br>hoạt động</span>", array("Site/GetHistory"), array("update"=>"#subContent"), array("class"=>"center-child"));
        echo CHtml::ajaxLink("<span>Thiết lập <br>tài khoản</span>", array("Site/GetAccountSetting"), array("update"=>"#subContent"), array("class"=>"center-child"));
        echo CHtml::ajaxLink("<span>Lĩnh vực <br>theo dõi</span>", array("Site/GetFollows"), array("update"=>"#subContent"), array("class"=>"center-child"));
        echo CHtml::ajaxLink("<span>Danh sách <br>bạn bè</span>", array("Site/GetFriends"), array("update"=>"#subContent"), array("class"=>"center-child"));
        ?>
<!--        <a href="Profile.html" class="center-child"><span>Lịch sử <br>hoạt động</span></a>
        <a href="Account_setting.html" class="center-child"><span>Thiết lập <br>tài khoản</span></a>
        <a href="Account_fields.html" class="center-child"><span>Lĩnh vực <br>theo dõi</span></a>
        <a href="Friends_List.html" class="center-child"><span>Danh sách <br>bạn bè</span></a>-->
    </nav>
</section>

<div class="home_wrapper" id="subContent">
    <?php echo $DanhMucArea; ?>
</div>